
****************************************************************		
** Table 4: District-propogation (based on 500 km distance)
****************************************************************	

use "$datadir\ewallet\maindata.dta", clear
	
	reghdfe  logamount postXdist500 if $filters , a($fe $dist_controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(amount)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ ) nocons nonotes stats(coef se)  replace
	reghdfe  logamount postXdist500  if $filters, a($fe $dist_controls##i.time_id i.state_id##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(amount)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe  lognumfirms postXdist500  if $filters, a($fe $dist_controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(\# users)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ ) nocons nonotes stats(coef se)  append
	reghdfe  lognumfirms postXdist500  if $filters, a($fe $dist_controls##i.time_id i.state_id##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(\# users)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe  lognewfirms postXdist500  if $filters, a($fe $dist_controls##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(\# switchers)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ ) nocons nonotes stats(coef se)  append
	reghdfe  lognewfirms postXdist500  if $filters, a($fe $dist_controls##i.time_id i.state_id##i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_3", tex(frag) ctitle("log(\# switchers)") dec(3) bracket label addtext(District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	
